package com.hxkj.client.service;

import com.hxkj.domain.po.FreeMarker;
import com.platform.common.domain.result.ResultDataStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @InterfaceName ColumnFreemarkerServiceClient
 * @Description TODO
 * @Author Mr.zheng
 * @Date 2018/7/18 17:02
 * @Version 1.0
 */
@FeignClient(name = "cms-publish-management")
public interface AnalyzeChannelServiceClient {


    /**
    * @author Mr.zheng
    * @Description analyzeColumn 解析文章分类自定义标签
    * @Date 17:06 2018/7/18
    * @Param [freeMarker]
    * @return com.platform.common.domain.result.ResultDataStruct
    **/
    @RequestMapping(value = "/analyze/analyzeChannel", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    ResultDataStruct analyzeChannel(@RequestBody FreeMarker freeMarker) throws Exception;

    /**
     * @author Mr.zheng
     * @Description analyzeColumn 解析热门文章及其推荐文章列表自定义标签
     * @Date 17:06 2018/7/18
     * @Param [freeMarker]
     * @return com.platform.common.domain.result.ResultDataStruct
     **/
    @RequestMapping(value = "/analyze/analyzeHotArticle", method = RequestMethod.POST,consumes = "application/json;charset=UTF-8")
    ResultDataStruct analyzeHotArticle(@RequestBody FreeMarker freeMarker) throws Exception;
}
